
public class Email {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String myemail1 = "untiring@naver.com";
		String myemail2 = "untiring@hanamail.com";
		String myemail3 = "untiring@gmail.com";
		String myemail4 = "untiring@nate.com";
		String myemail5 = "untiring@hotmail.com";
		System.out.println(myemail4.indexOf(1));
		System.out.println(myemail1.substring(myemail1.indexOf('@'),myemail1.length()));
		
		/*if(myemail5.indexOf("naver.com")!=-1)
			System.out.println();
		else if(myemail5.indexOf("hanmail.com")!=-1)
		else if(myemail5.indexOf("gmail.com")!=-1)
		else if(myemail5.indexOf("nate.com")!=-1)
		else*/ 			
	System.out.println(myemail1.indexOf("naver.com"));
	}
}
